internal/strconv.decimal.dp (field)
41 uses
internal/strconv (current package)
atof.go#L99: b.dp = b.nd
atof.go#L105: b.dp--
atof.go#L122: b.dp = b.nd
atof.go#L156: b.dp += e * esign
atof.go#L325: if d.dp > 310 {
atof.go#L328: if d.dp < -330 {
atof.go#L337: for d.dp > 0 {
atof.go#L339: if d.dp >= len(powtab) {
atof.go#L342: n = powtab[d.dp]
atof.go#L347: for d.dp < 0 || d.dp == 0 && d.d[0] < '5' {
atof.go#L349: if -d.dp >= len(powtab) {
atof.go#L352: n = powtab[-d.dp]
decimal.go#L17: dp int // decimal point
decimal.go#L24: if a.dp > 0 {
decimal.go#L25: n += a.dp
decimal.go#L27: if a.dp < 0 {
decimal.go#L28: n += -a.dp
decimal.go#L37: case a.dp <= 0:
decimal.go#L43: w += digitZero(buf[w : w+-a.dp])
decimal.go#L46: case a.dp < a.nd:
decimal.go#L48: w += copy(buf[w:], a.d[0:a.dp])
decimal.go#L51: w += copy(buf[w:], a.d[a.dp:a.nd])
decimal.go#L56: w += digitZero(buf[w : w+a.dp-a.nd])
decimal.go#L76: a.dp = 0
decimal.go#L100: a.dp = a.nd
decimal.go#L132: a.dp -= r - 1
decimal.go#L310: a.dp += delta
decimal.go#L394: a.dp++
decimal.go#L400: if a.dp > 20 {
decimal.go#L405: for i = 0; i < a.dp && i < a.nd; i++ {
decimal.go#L408: for ; i < a.dp; i++ {
decimal.go#L411: if shouldRoundUp(a, a.dp) {
ftoa.go#L197: digs = decimalSlice{d: d.d[:], nd: d.nd, dp: d.dp}
ftoa.go#L213: d.Round(d.dp + prec)
ftoa.go#L220: digs = decimalSlice{d: d.d[:], nd: d.nd, dp: d.dp}
ftoa.go#L284: if exp > minexp && 332*(d.dp-d.nd) >= 100*(exp-int(flt.mantbits)) {
ftoa.go#L339: mi := ui - upper.dp + d.dp
ftoa.go#L343: li := ui - upper.dp + lower.dp
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |